package com.fg.cloud.manager.entry.system;

import java.math.BigDecimal;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fg.cloud.common.convert.CustomBigDecimalSerialize;
import com.fg.cloud.manager.entry.BaseEntity;

/**
 * Description:购物车实体类
 * @author dingjiang
 * @date 2017年8月28日上午10:10:57
 */
public class TrolleyEntity extends BaseEntity {

	private static final long serialVersionUID = -5373733779249029350L;
	
	/** 商品ID */
	private Long productId;
	
	/** 商品skuID */
	private Long skuId;
	
	/** 经销商ID */
	private Long ageId;
	
	/** 商品编码 */
	private String productNumber;
	
	/** 商品名称 */
	private String productName;
	
	/** 商品规格组合 */
	private String productSpec;
	
	/** 商品缩略图 */
	private String productImg;
	
	/** 批次号 */
	private String batchNumber;
	
	/** 实际购买数量 */
	private BigDecimal amount;
	
	/** 单位换算数量 */
	private Integer stdAmount;
	
	/** 单位ID */
	private Long unitId;
	
	/** 基本单位ID */
	private Long stdUnitId;

	/** 单位名称 */
	private String unitName;

	/** 商品库存量 */
	private BigDecimal stock;

	/** 商品原价 */
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal sellPrice;

	/** 实际价格 */
	@JsonSerialize(using=CustomBigDecimalSerialize.class)
	private BigDecimal promotionPrice;
	
	/** 是否手工价格 */
	private Integer isCustom;
	
	
	public Long getSkuId() {
		return skuId;
	}

	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}

	public Long getAgeId() {
		return ageId;
	}

	public void setAgeId(Long ageId) {
		this.ageId = ageId;
	}

	public String getProductNumber() {
		return productNumber;
	}

	public void setProductNumber(String productNumber) {
		this.productNumber = productNumber;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public String getProductImg() {
		return productImg;
	}

	public void setProductImg(String productImg) {
		this.productImg = productImg;
	}

	public String getBatchNumber() {
		return batchNumber;
	}

	public void setBatchNumber(String batchNumber) {
		this.batchNumber = batchNumber;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getStdAmount() {
		return stdAmount;
	}

	public void setStdAmount(Integer stdAmount) {
		this.stdAmount = stdAmount;
	}

	public Long getUnitId() {
		return unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public BigDecimal getStock() {
		return stock;
	}

	public void setStock(BigDecimal stock) {
		this.stock = stock;
	}

	public BigDecimal getPromotionPrice() {
		return promotionPrice;
	}

	public void setPromotionPrice(BigDecimal promotionPrice) {
		this.promotionPrice = promotionPrice;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Integer getIsCustom() {
		return isCustom;
	}

	public void setIsCustom(Integer isCustom) {
		this.isCustom = isCustom;
	}
	
}
